<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Home</title>
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/css/style.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/css/bootstrap.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/css/bootstrap-responsive.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/css/bootstrap.min.css" />
        <script type="text/javascript" src="<?php echo base_url() ?>css/css/bootstrap.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>css/css/bootstrap.min.js"></script>
        <script src="<?php echo base_url() ?>css/css/jquery-1.8.3.js"></script>
        <script src="<?php echo base_url() ?>css/css/jquery-ui-1.9.2.custom.js"></script>
        <link rel="stylesheet" href="<?php echo base_url() ?>css/css/jquery-ui-1.9.2.custom.min.css" />

        <script type="text/javascript"> 
          $(document).ready(function(){
            $("#tanggal").datepicker({
                                            dateFormat      : "yy-mm-dd",        
              showOn          : "button",
              buttonImage     : "<?php echo base_url() ?>image/calendar.gif",
              buttonImageOnly : true				
            });
        
            $("#tgl_tansfer").datepicker({
                                            dateFormat      : "yy-mm-dd",        
              showOn          : "button",
              buttonImage     : "<?php echo base_url() ?>image/calendar.gif",
              buttonImageOnly : true				
            });
          });
        </script>
    </head>

    <body>
        <?php
        if (isset($from)) {
            
        } else {
            $from = "CGK";
            $to = "DPS";
            $date = "";
            $id_maskapai = "";
            $adult_post = "";
            $child_post = "";
            $infant_post = "";
        }
        ?>
        <div id="lineup1">


            <div id="Nav">
                <div class="navbar">
                    <div class="navbar-inner">
                        <a class="brand" href="#">Stasiun Tiket Center</a>
                        <ul class="nav">
                            <li ><?php echo anchor('costumers/index', 'Home') ?></li>
                            <li ><?php echo anchor("contents/show/" . '4', 'About') ?></li>
                            <li><?php echo anchor("contents/show/" . '3', 'Contact Us') ?></li>
                            <li><?php echo anchor("contents/show/" . '2', 'Cara Booking') ?></li>
                        </ul>
                    </div>
                </div>
                <br /><br /><br />
            </div>
        </div>




        <div id="main">

            <div id="wp-main-web">  



                <!--Blok kanan-->
                <div id="blokkanan">


                    <div id="wrapper1">
                        <div id="label1"><div id="namelab"><b>User &nbsp;Selamat datang, <?php  echo get_user($id) ?></b></b></div></div>
                        <div id="isi5">
                            <div id="isi4">
                                Sisa Deposit : <b>Rp.<?php echo number_format(get_total($deposits), 0, ",", ".") ?></b><br /><br />
                                Keanggotaan berlaku sampai dengan 
                                <?php echo get_tanggal_1($expire) ?><br /><br />
<?php echo anchor('login/logout', 'Logout') ?>  

                            </div>
                        </div>
                    </div>
                    <div id="wrapper1">
                        <div id="label1"><div id="namelab"><b>Cari Tiket</b></div></div>
<?php include('caritiket.php') ?>
                    </div>
                </div>
                <div id="wrapper1">
                    <div id="label1"><div id="namelab"><b>Member Area</b></div></div>
                    <div id="isi5">

                        <div id="isi4">
                            <ul class="nav nav-pills nav-stacked">
                                <li ><div id="titlemerah3">CS Online Support</div></li>
                                <br />
                                <?php foreach ($yms->result() as $ym): ?>
                                        <li> <a href="ymsgr:sendIM?<?php echo $ym->email ?>"><img src="http://opi.yahoo.com/online?u=<?php echo $ym->email ?>&amp;m=g&amp;t=2" border="0"></a></li> 
                                <?php endforeach ?>
                            </ul>
                            <ul class="nav nav-pills nav-stacked">
                                <li ><div id="titlemerah3">Personal Info</div></li>
                                <li><?php echo anchor('costumers/info', 'Personal info') ?></li>
                                <li><?php echo anchor('costumers/edit', 'Update Info') ?></li>
                            </ul>
                            <ul class="nav nav-pills nav-stacked">
                                <li><div id="titlemerah3">Ticket Anda</div></li>
                                <!--<li><?php // echo anchor('costumers/status_book', "Status Book ($book_count)") ?></li>-->
                                <li><?php echo anchor('costumers/status_issued', "Tiket Anda ($issued_count)") ?></li>
                                <li><?php echo anchor('deposits/refund', 'Refund Ticket') ?></li>
                                <!--<li><?php // echo anchor('deposits/history_refund', 'History refound ticket') ?></li>-->
                            </ul>
                            <ul class="nav nav-pills nav-stacked">
                                <li><div id="titlemerah3">Deposit</div></li>
                                <li><?php echo anchor('deposits/add', 'Konfirmasi deposit'); ?></li>
                                <li><?php echo anchor('deposits/index', 'History deposit'); ?></li>
                                <!--<li><?php // echo anchor('deposits/history_fee', 'History fee'); ?></li>-->
                            </ul>

                        </div>


                    </div>

                </div>

            </div>

            <div id="blokinfotck">
                <!-- Halaman Kiri -->  
<?php $this->load->view($content) ?>

            </div>

        </div>



        </div>
        </div>


        <div id="wrapperfooter">
            <div id="footer2">
                <div id="isilogo1">
                    <img src="<?php echo base_url() ?>image/logo.png" width="659" height="100" />
                </div>
            </div>
        </div>



    </body>
</html>